package com.example.ipcxunyou;

import com.example.ipcxunyou.bean.UserInfo;

public class UserManager implements IUserManager {
    private static UserManager sInstance=null;
    public static synchronized UserManager getInstance() {
        if (sInstance == null) {
            sInstance=new UserManager();
        }
        return sInstance;
    }

    private UserManager(){

    }
    private UserInfo userInfo;
    @Override
    public UserInfo getUser() {
        return userInfo;
    }

    @Override
    public void setUser(UserInfo user) {
        this.userInfo=user;
    }
}
